package com.fw.application;
import com.fw.utils.ip.IpUtils;
import com.ulisesbocchio.jasyptspringboot.annotation.EnableEncryptableProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.FilterType;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Author:yanwei
 * @Date: 2020/8/3 - 18:35
 */
@SpringBootApplication
@EnableScheduling
@EnableAsync
@EnableTransactionManagement
@EnableAspectJAutoProxy
@MapperScan("com.fw.system.web.dao")
@EnableEncryptableProperties
@ComponentScan(basePackages = "com.fw.**",excludeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM,classes = {ExcludeClass.class})})
public class ExampleWebStart {
    public static void main(String[] args) {
        System.out.println(IpUtils.getHostIp());
        SpringApplication.run(ExampleWebStart.class,args);
    }
}
